import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);
export default new Vuex.Store({
    // 数据存储单元
    state:{
        latitude:34.739246,
        longitude:113.643691,
        userId: ''
        // userId: 1960726753
    },
    mutations:{
        setUserId(state, userId){
            state.userId = userId;
            console.log('当前的user-id', userId)
        }
    },
})